package indi.jp.project.center.entity;

import java.util.Date;

/**
 * 消息中心
 *
 * @author jiangping
 * @date 2022/3/1
 */
public class Msg {

    public Msg(){

    }

    public Msg(String taskId, String taskNo, String taskName, String taskType, int category, String templateId, String handler, Date handleTime, String handleResult, String applicant, Date applyTime){
        this.taskId = taskId;
        this.taskNo = taskNo;
        this.taskName = taskName;
        this.taskType = taskType;
        this.category = category;
        this.templateId = templateId;
        this.handler = handler;
        this.handleTime = handleTime;
        this.handleResult = handleResult;
        this.applicant = applicant;
        this.applyTime = applyTime;
        this.state = 0;
    }

    /**
     * 主键
     */
    private String id;

    /**
     * 任务ID
     */
    private String taskId;

    /**
     * 任务编码
     */
    private String taskNo;

    /**
     * 任务名称
     */
    private String taskName;

    /**
     * 任务类型（流程编码）
     */
    private String taskType;

    /**
     * 消息类型（1：待审核、2：审核结果）
     */
    private int category;

    /**
     * 消息模版ID
     */
    private String templateId;

    /**
     * 处理人
     */
    private String handler;

    /**
     * 处理时间
     */
    private Date handleTime;

    /**
     * 处理结果
     */
    private String handleResult;

    /**
     * 申请人
     */
    private String applicant;

    /**
     * 申请时间
     */
    private Date applyTime;

    /**
     * 消息状态（0：待通知、1：已通知）
     */
    private int state;

    /**
     * 创建时间
     */
    private Date createTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getTaskNo() {
        return taskNo;
    }

    public void setTaskNo(String taskNo) {
        this.taskNo = taskNo;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskType() {
        return taskType;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType;
    }

    public int getCategory() {
        return category;
    }

    public void setCategory(int category) {
        this.category = category;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getHandler() {
        return handler;
    }

    public void setHandler(String handler) {
        this.handler = handler;
    }

    public Date getHandleTime() {
        return handleTime;
    }

    public void setHandleTime(Date handleTime) {
        this.handleTime = handleTime;
    }

    public String getHandleResult() {
        return handleResult;
    }

    public void setHandleResult(String handleResult) {
        this.handleResult = handleResult;
    }

    public String getApplicant() {
        return applicant;
    }

    public void setApplicant(String applicant) {
        this.applicant = applicant;
    }

    public Date getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
